package fr.utt.lo02.CrazyEight.Model.crazy8;

/**
 * Contient toutes les variables du jeu, nottament celles necessaire au comptage des points.
 * @author jerem
 * @version december 2011
 */

public class CrazyEight {
	
	public static final int MIN_CARDS_BY_PLAYER = 8;
	public static final int MAX_PLAYERS_IN_GAME = 8;
	
	public final static String[] COLOR_ALL = {	"Carreau",
												"Coeur",
												"Pique",
												"Trefle",
												"Rouge",
												"Noir"
											};
	
	public final static String[] HEIGHT_ALL = {	"Joker",
												"As",
												"Deux",
												"Trois",
												"Quatre",
												"Cinq",
												"Six",
												"Sept",
												"Huit",
												"Neuf",
												"Dix",
												"Valet",
												"Dame",
												"Roi"
											};
	
	// Couleurs des cartes
	public final static int DIAMOND = 0;		// Carreau
	public final static int HEART	= 1;		// Coeur
	public final static int SPADE	= 2;		// Pique
	public final static int CLUB	= 3;		// Trefle
	public final static int RED		= 4;
	public final static int BLACK	= 5;
	
	// Hauteurs des cartes
	public final static int JOKER 	= 0;
	public final static int ACE		= 1;
	public final static int TWO		= 2;
	public final static int THREE	= 3;
	public final static int FOUR	= 4;
	public final static int FIVE	= 5;
	public final static int SIX		= 6;
	public final static int SEVEN	= 7;
	public final static int EIGHT	= 8;
	public final static int NINE	= 9;
	public final static int TEN		= 10;
	public final static int JACK 	= 11;
	public final static int QUEEN	= 12;
	public final static int KING 	= 13;

	
	// Correspondances cartes <--> nombre de points
	public final static int[] CARD_POINTS = {	50,	// joker
												20,	// as
												2,	// ...
												3,
												4,
												5,
												6,
												7,
												32,	// huit
												9,
												10,
												10,	// valet
												10,
												10	
											};
	
	// Tableau permettant de donner un nom 'aleatoire' aux joueurs virtuels
	public final static String[] VIRTUAL_PLAYER_NAME = {	"Bobby",
															"Jacky",
															"Lancelot",
															"Kyle",
															"Ginette",
															"Brandon",
															"Allan",
															"Eliot"
														};
	
	/**
	 * Chemins pour acceder aux ressources
	 */
	public final static String PATH				= "ressources/";
	public final static String PATH_CARDS		= PATH + "cards/";
	
	
	public final static String PATH_RULES           = PATH + "regles_du_jeu/"; 
	public final static String PATH_APPEARANCES		= PATH + "appearances/";
	public final static String PATH_AVATARS_HUMAN	= PATH + "avatars/humans/";
	public final static String PATH_AVATARS_VIRTUAL	= PATH + "avatars/virtuals/";
	
	public final static String PATH_DIAMOND			= PATH_CARDS + "diamond/";
	public final static String PATH_HEART			= PATH_CARDS + "heart/";
	public final static String PATH_SPADE			= PATH_CARDS + "spade/";
	public final static String PATH_CLUB			= PATH_CARDS + "club/";
	public final static String PATH_JOKER			= PATH_CARDS + "joker/";
	
	/**
	 * Chemin pour acceder aux cartes
	 * @see Panel
	 */
	public final static String[] NAME_CARDS = {	"",
												"ACE.png",
												"TWO.png",
												"THREE.png",
												"FOUR.png",
												"FIVE.png",
												"SIX.png",
												"SEVEN.png",
												"EIGHT.png",
												"NINE.png",
												"TEN.png",
												"JACK.png",
												"QUEEN.png",
												"KING.png"
											};

}